package swing;

import java.awt.BorderLayout;

import javax.swing.JFrame;



public class AppFormation {

	public static void main(String[] args) {

		JFrame fenetreFormation = new JFrame();
		FormationPanel formationPanel = 		new FormationPanel();
		FormationListePanel formationListePanel = 		new FormationListePanel();
		
		
		
		formationPanel.setFormationListePanel(formationListePanel);
		formationListePanel.setFormationPanel(formationPanel);
		
		fenetreFormation.add(formationListePanel, BorderLayout.WEST);
		fenetreFormation.add(formationPanel, BorderLayout.CENTER);
				// organise la disposition (pack), la rend visible, la ferme
				// COMPLETEMENT en cliquant sur la croix, la centre, permet le
				// redimensionnement
				fenetreFormation .setSize(1200, 600);
				fenetreFormation.setVisible(true);

				fenetreFormation.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				fenetreFormation.setLocationRelativeTo(null);
				//fenetreFormation.setResizable(false);
				
	}
	
}
